Control for aerosol generating procedures